From ed87f1cbd28fe07853ab097aa4c38f605e28531c Mon Sep 17 00:00:00 2001 From: Joseph Marrero Corchado Date: Mon, 29 Jun 2026 15:16:31 -0400 Subject: [PATCH] tests: Run clang-format on test-validate-utf8.c The file introduced in commit ac10a27d was not run through clang-format before merging. Reformat the invalid_333 char array initializer to comply with the project's .clang-format rules. Fixes the clang-format-check CI job failure. --- tests/test-validate-utf8.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/test-validate-utf8.c b/tests/test-validate-utf8.c index dc561a28..4aa07cfc 100644 --- a/tests/test-validate-utf8.c +++ b/tests/test-validate-utf8.c @@ -82,11 +82,10 @@ test_invalid_utf8_refs (void) g_clear_error (&error); /* Invalid UTF-8: 0x333 as mentioned in issue #2959 */ - const char invalid_333[] = { 's', 'o', 'm', 'e', '-', 'b', 'r', 'a', 'n', 'c', - 'h', '-', 'n', 'a', 'm', 'e', '-', 'w', 'i', 't', - 'h', '-', 'i', 'n', 'v', 'a', 'l', 'i', 'd', '-', - 'u', 't', 'f', '-', 's', 'y', 'm', 'b', 'o', 'l', - '-', '\xdb', '\0' }; + const char invalid_333[] + = { 's', 'o', 'm', 'e', '-', 'b', 'r', 'a', 'n', 'c', 'h', '-', 'n', 'a', 'm', + 'e', '-', 'w', 'i', 't', 'h', '-', 'i', 'n', 'v', 'a', 'l', 'i', 'd', '-', + 'u', 't', 'f', '-', 's', 'y', 'm', 'b', 'o', 'l', '-', '\xdb', '\0' }; g_assert_false (ostree_validate_rev (invalid_333, &error)); g_assert_nonnull (error); g_clear_error (&error); -- 2.39.5